﻿using System.Web.Mvc;

namespace EraNet.WebApp.LMS
{
    public class LMSAreaRegistration : AreaRegistrationOrder
    {
        public override string AreaName
        {
            get
            {
                return "LMS";
            }
        }

        public override void RegisterAreaOrder(AreaRegistrationContext context)
        {
            context.MapRoute("LMS_default", "{controller}/{action}/{id}", new { area = "LMS", controller = "account", action = "index", id = UrlParameter.Optional });
            context.MapRoute("LMS_Notices",
                "{controller}/{action}/{id}",
                new { area = "LMS", controller = "Messages", action = "Notices", id = UrlParameter.Optional },
                new[] { "EraNet.Web.LMS" });
        }

        public override int Order
        {
            get { return 9; }
        }
    }
}
